package com.liwentao.seckill.service;

import com.liwentao.seckill.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.liwentao.seckill.entity.vo.LoginVo;
import com.liwentao.seckill.exception.GlobalException;
import com.liwentao.seckill.result.R;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jobob
 * @since 2022-01-25
 */
public interface IUserService extends IService<User> {

    R login(LoginVo loginVo, HttpServletRequest request, HttpServletResponse response) throws GlobalException;
    User getUserByCookie(String userTicket,HttpServletResponse response,HttpServletRequest request);
}
